<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
    @import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
    @import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
    @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript">
    var t = jQuery.noConflict();
    t(document).ready(function() {
        t('#example').dataTable({
            "bJQueryUI": true,
            "sPaginationType": "full_numbers",
            "sDom": 'T C lfrtip',
            "oTableTools": {
                "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                "aButtons": [
                    "xls", ],
            },
        });
    });
</script>

<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/rpt_matricula/imprimir" ?>" method="post">
    <legend>REPORTES DE <?php echo strtoupper($nombre_rubro); ?> POR CARRERA</legend>
    <div class="control-group">
        <label class="control-label" for="select03">CARRERAS: <?php echo (!empty($reporte) ? $nombre_car : "NINGUNA"); ?></label>
        <label class="control-label" for="select03">CICLO  : <?php echo (!empty($reporte) ? $nombre_cic : "NINGUNA"); ?></label>
        <label class="control-label" for="select03">SECCION:<?php echo (!empty($reporte) ? $nom_seccion : "NINGUNA"); ; ?></label>

    </div>  
    <div class="tabbable">  
        <!-- se coloca el tabbable para que la tabla example muestre la barra horizontal y vertical -->
        <ul class="nav nav-tabs">
            <li class="active"><a href="#1" data-toggle="tab">RUBROS</a></li>

        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="1">


                <div id="tablamatriculai" >
                    <table id="example" class="table table-bordered table-striped table-condensed">

                        <thead>
                            <tr>
                                <th>Nro</th>
                                <th>CEDULA</th>
                                <th>APELLIDOS</th>
                                <th>NOMBRES</th>
                                <th>PAR</th>
                                <th>VALOR</th>
                                <th>COUT</th>
                                <th>DEBE</th>
                                <th>CANC</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $fila = 1;
                            //print_r($reporte);

                            if (!empty($reporte)) {
                                foreach ($reporte as $i => $repor) {
                                    ?>
                                    <tr>
                                        <td ><?php echo $fila; ?></td>
                                        <td><?php echo $repor['cedula_pers'] ?></td>
                                        <td><?php echo $repor['apellido_pers'] ?></td>
                                        <td><?php echo $repor['nombre_pers']; ?></td>
                                        <td><?php echo $repor['paralelo']; ?></td>
                                        <td><?php echo $repor['costo_rubro'] ?></td>
                                        <td><?php echo ($this->rubrocons_modelo->Nro_cuotas($repor["id_matr"])) ?></td>
                                        <td><?php echo ($this->rubrocons_modelo->Nro_Nocanceladas($repor["id_matr"])) ?></td>
                                        <td><?php echo ($repor['estado_asigna'] == 1 ? "NO" : "SI") ?></td>

                                    </tr>
                                    <?php
                                    $fila+=1;
                                }
                            }
                            ?>
                       <!--     <tr>
                                <td>0</td>
                                <td> </td>
                                <td></td>
                                <td></td>
                                <td>TOTAL</td>
                                <td><div><?php echo $s_h; ?></div></td>
                                <td><div><?php echo $s_m; ?></div></td>
                            </tr>
                            -->

                        </tbody>
                    </table>  
                </div>
                <input type="hidden" <?php echo "name='ide_lec' value='" . $ide_lec . "'"; ?>>
                <input type="hidden" <?php echo "name='ide_car' value='" . $ide_car . "'"; ?>>
                <input type="hidden" <?php echo "name='ide_pen' value='" . $ide_pen . "'"; ?>>
                <input type="hidden" <?php echo "name='ide_ciclo' value='" . $ide_ciclo . "'"; ?>>
                <input type="hidden" <?php echo "name='seccion' value='" . $seccion . "'"; ?>>
                <input type="hidden" <?php echo "name='paralelo' value='" . $paralelo . "'"; ?>>


                <div class="controls">
                    <button type="submit" class="btn">imprimir</button>

                </div> 
            </div>  <!--fin tabulador 3 -->


        </div>
    </div>



</form>

